home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3724 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  49 lines

  1. Path: lrz-muenchen.de!wap7!west
  2. From: west@emt.e-technik.tu-muenchen.de (Robert Westendorp)
  3. Newsgroups: comp.lang.c
  4. Subject: Beginner: How to #include
  5. Date: Tue, 30 Jan 1996 18:25:01 UNDEFINED
  6. Organization: TU-Muenchen
  7. Distribution: world
  8. Message-ID: <west.31.00844D6A@emt.e-technik.tu-muenchen.de>
  9. NNTP-Posting-Host: wap7.emt.e-technik.tu-muenchen.de
  10. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B]
  11.  
  12. Hi there,
  13. I've got a principle question:
  14.  
  15. I've got a project which consists of a couple of files.
  16.  
  17. Let's say I define a struct including a member which is of a type 
  18. declared in direct.h
  19.  
  20. First File: my_inc.h
  21.  
  22. #include <direct.h>
  23.  
  24. struct MYSTRUCT
  25. {
  26.     _find_t fileinfo;
  27. ....
  28. }
  29.  
  30. Then I want to use this struct in another file: 
  31.  
  32. struct MYSTRUCT my_variable;
  33.  
  34. I will have to include my_inc.h, AND I will have to include direct.h;
  35.  
  36. Now I have a couple of include files and it's very annoying always to include
  37. those files down to direct.h, especially because I have to include them in the 
  38. right order.
  39.  
  40. How can I solve this problem?
  41. Include in include-files???
  42.  
  43. thanks a lot,
  44. C. Kellner
  45.  
  46.  
  47.  
  48.  
  49.